import { defineStore } from 'pinia'

export const useHomeStore = defineStore('home', {
  // 数据
  state: () => {
    return {
      Info: [],
      imgUrl: [],
      article: null,
      username: '',
      password: '',
      theme: false,
    }
  },
  // 方法
  actions: {

  },
  getters: {

  },
  persist: {
    enabled: true,
    strategies: [
      {
        key: "ID",
        storage: localStorage,
        paths: ["username", "password"],
      },
    ],
  },
})
